package com.travel.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;

@Data
@ApiModel("景点修改DTO")
public class TravelAttractionUpdateDTO {
    @ApiModelProperty(value = "景点ID", required = true)
    private Integer id;
    
    @ApiModelProperty(value = "景点名称", required = true)
    private String attractionName;
    
    @ApiModelProperty(value = "景点描述", required = true)
    private String attractionDesc;
    
    @ApiModelProperty(value = "景点图片", required = true)
    private String attractionImage;
    
    @ApiModelProperty(value = "所属产品ID", hidden = true)
    private Long productId;

    @Max(value = 180, message = "值必须是 0 - 180")
    @Min(value = 0, message = "值必须是0 - 180")
    @ApiModelProperty(value = "纬度", required = true)
    private Double latitude;

    @Max(value = 90, message = "值必须是 0 - 90")
    @Min(value = 0, message = "值必须是0 - 90")
    @ApiModelProperty(value = "经度", required = true)
    private Double longitude;
}
